<?php
require 'user.php';
//require 'geshi.php';
require 'function.php';
if(file_exists($path=@_decode($_GET['path']))==false) {
header('Content-Type:text/html;charset=UTF-8');
echo <<<HTML
Error：404
HTML;
exit;
}
?>
<?php
header('Content-Type:text/html;charset=UTF-8');
echo <<<HTML
<html>
<head>
<title>文件管理－SVN状态</title>
<style type="text/css">
.big_board{background-color:#009BCE;color:#FFF;}
.board_title{margin-bottom:1px;border:1px solid #09F;}
</style>
</head>
<body>
<div class="big_board"><div class="board_title">爱特文管－路径信息</div></div>
HTML;
echo '<a href="index.php?path='._encode(dirname(_decode($_GET['path']))).'">'.dirname(_decode($_GET['path'])).'</a>/'.basename(_decode($_GET['path']));
echo '<div class="big_board"><div class="board_board_title">爱特文管－SVN状态</div></div>';
$pth=escapeshellarg(svnpath($path));

$cmd="svn cleanup $pth $_SESSION[key]";
echo htmlcode(cmd($cmd));
echo '<div class="big_board"><div class="board_title">By：Admin@Lspecial.Com</div></div>';
echo '</body></html>';
?>